//
//  OMPaySuccessPhoneTableCell.m
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/5/12.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMPaySuccessPhoneTableCell.h"
@interface OMPaySuccessPhoneTableCell()
@property (nonatomic, strong) UILabel *elementLabel;
@property (nonatomic, strong) UILabel *phoneLabel;
@property (nonatomic, strong) UIImageView *iconImageView;
@end

@implementation OMPaySuccessPhoneTableCell

- (void)configure
{
    [super configure];
    
    _iconImageView = [[UIImageView alloc]initWithImage:[UIImage pngNamed:@"ic_pay_success_phone"]];
    [self.containView addSubview:_iconImageView];
    [_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(SM_SIZE(40)));
        make.top.equalTo(@(SM_SIZE(20)));
        make.bottom.equalTo(@(SM_SIZE(-20)));
        make.width.height.equalTo(@(SM_SIZE(70)));
    }];

    _elementLabel = [UILabel new];
    _elementLabel.text = @"服务电话";
    _elementLabel.font = SM_CFont(30);
    _elementLabel.textColor = HEXCOLOR(@"9f9f9f");
    [self.containView addSubview:_elementLabel];
    [_elementLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.iconImageView.mas_right).offset(SM_SIZE(20));
        make.centerY.equalTo(self.containView.mas_centerY);
    }];

    _phoneLabel = [UILabel new];
    _phoneLabel.textColor = HEXCOLOR(@"#1084E0");
    _phoneLabel.font = SM_NFont(30);
    _phoneLabel.text = @"400-930-2220";
    [self.containView addSubview:_phoneLabel];
    [_phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.elementLabel.mas_right).offset(SM_SIZE(20));
        make.centerY.equalTo(self.elementLabel.mas_centerY);
    }];
    
}

@end
